import {
    localStorageSyncServer,
} from "./common"
let globalData = {};

globalData.install = (Vue, options) => {
    // 1. 添加全局方法或属性
    Vue.globalData = {
        userInfo: {
            userInfoId: localStorageSyncServer.get("userInfoId", 1),
            personId: "",
            mobile: localStorageSyncServer.get("mobile"),
            image: localStorageSyncServer.get("image"),
        },
        openId: "",
        token: "",
        avatar: "",
        hostIp: "http://zadai.net:8000" //生产环境
            //hostIp: "http://192.168.1.104:8080" //生产环境

    };

}
export default globalData